package org.bsplus.service;

import java.util.List;
import javax.annotation.Resource;
import org.bsplus.dao.UserDAO;
import org.bsplus.domain.User;
import org.springframework.beans.factory.annotation.Required;

public class UserService
{
    private UserDAO userDAO;

    public User getUser(String username)
    {
        return userDAO.getUser(username);
    }

    public List<User> getAllUsers()
    {
        return userDAO.getAllUsers();
    }

    @Resource
    @Required
    public void setUserDAO(UserDAO userDAO)
    {
        this.userDAO = userDAO;
    }
}
